<style>
    .pageFormContent dl dt {
        width: 140px;
    }
    
    .pageFormContent dl dd {
        width: 220px;
    }
</style>
<div class="pageContent">
    <form method="post" action="{:U('User/insert_free')}" onsubmit="return validateCallback(this,dialogAjaxDone);">
		
	
		<div class="pageFormContent nowrap" layoutH="97">
		    <dl>
                <dt>
                    用户ID：
                </dt>
                <dd>
				   <input id="inputBrand1" name="user.id" value="{$inf['userid']}{$info.userid}" type="hidden"/><input class="required autoinput" name="user.username" value="{$info.username}{$inf['username']}" type="text" postField="keywords" suggestFields="id,username" suggestUrl="{:U('User/suggest',array('tn'=>'user','fn'=>'id,username','field'=>'id,username','where'=>myencode(array('status'=>1),1)))}" lookupGroup="user"/> 
                </dd>
            </dl>
         
			  <dl>
                <dt>
                    免邮类型：
                </dt>
                <dd>
                    <select  class='required textInput' class="combox" name='type' id="type">
	                   	<option value='' selected='selected'>请选择</option>	
						<option value='1' {if $type == 1}selected='selected'{/if}>次数</option>
						<option value='2' {if $type == 2}selected='selected'{/if}>时间</option>
						<option value='3' {if $type == 3}selected='selected'{/if}>次数和时间</option>
						<option value='4' {if $type == 4}selected='selected'{/if}>永久免邮</option>
                   </select>
                </dd>
            </dl>
			        <dl>
                <dt>
                   免邮次数：
                </dt>
                <dd>
                    <input type='text' name="number" value="{$number}"/>
                </dd>
            </dl>
                  <!--  <dl>
                <dt>
                   剩余免邮次数：
                </dt>
                <dd>
                    <input type='text' name="surplus_number" value="{$surplus_number}"/>
                </dd>
            </dl> -->
                   <dl>
                <dt>
                  免邮有效开始时间：
                </dt>
                <dd>
                    <input name="starttime" class="date" type="text" value="{$statetime}"/><a class="inputDateButton" href="javascript:;">选择</a>
                </dd>
            </dl>
                   <dl>
                <dt>
                   免邮有效结束时间：
                </dt>
                <dd>
                    <input name="endtime" class="date" type="text" value="{$endtime}"/><a class="inputDateButton" href="javascript:;">选择</a>
                </dd>
            </dl>
        </div>
		
		<div>
		</div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                保存
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
	</div>